package com.smart4s.app.core.positionservice.model;



import com.smart4s.app.core.positionservice.contract.Contracts;
import com.smart4s.app.core.positionservice.utils.NetUtil;

import java.util.Map;

/**
 * Created by Android Studio.
 * User: 潘世松
 * Date: 2019/12/27
 * Time: 14:43
 */
public class ModelImpl implements Contracts.IModel {

    @Override
    public void onPostInfo(String url, Map<String, Object> map, Class cla, final Contracts.MyCallBack myCallBack) {
        NetUtil.getInstance().onPostInfo(url, map, cla, new NetUtil.NetCallBack() {
            @Override
            public void onSuccess(Object o) {
                myCallBack.onSuccess(o);
            }

            @Override
            public void onError(String error) {
                myCallBack.onError(error);
            }
        });
    }
}
